package com.jial08.designpatterns.exterior;

import com.jial08.designpatterns.exterior.impl.Circle;
import com.jial08.designpatterns.exterior.impl.Rectangle;
import com.jial08.designpatterns.exterior.impl.Square;

/**
 * <p>类描述：外观类。</p>
 *
 * @author jl
 * @version v1.0.0.1。
 * @since JDK1.8。
 * <p>创建日期：2019/10/31 上午8:50。</p>
 */
public class ShapeMaker {
	Circle circle;
	Rectangle rectangle;
	Square square;

	public ShapeMaker() {
		circle = new Circle();
		rectangle = new Rectangle();
		square = new Square();
	}

	public void drawCircle() {
		circle.draw();
	}

	public void drawRectangle() {
		rectangle.draw();
	}

	public void drawSquare() {
		square.draw();
	}
}
